import xadmin
from apps.users.models import WeChatUser
class WeChatUserAdmin(object):
    list_display = ["uuid", "username","gender","show_image","desc",'city', "province","id_delete","is_level"]
    search_fields = ["uuid", "username","gender","desc",'city', "province","id_delete","is_level"]
    list_filter = ["uuid", "username","gender","desc",'city', "province","id_delete","is_level"]
    list_editable = ["uuid", "username","gender","desc",'city', "province","id_delete","is_level"]



class GlobalSettings(object):
    site_title = "芜忧系统后台"
    site_footer = "芜忧系统后台"
    # menu_style = "accordion"

class BaseStettings(object):
    enable_themes = True
    use_bootswatch = True

xadmin.site.register(WeChatUser, WeChatUserAdmin)
xadmin.site.register(xadmin.views.CommAdminView, GlobalSettings)
xadmin.site.register(xadmin.views.BaseAdminView, BaseStettings)